<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import = "com.xiaonei.model.*,com.xiaonei.DAO.*" %>
<%@ page import = "java.net.URLDecoder,java.net.URLEncoder" %>
<%String nickname = (String)request.getSession().getAttribute("nickname"); %>
<%String account = (String) request.getSession().getAttribute("user"); %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>话题</title>
<link href = "./css/tieziSchool.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id = "head" >
	<div id = "head1" ><a href = "dl.jsp" style="font-size:18;color:black">校内</a></div>
	<div id = "head2"><a href = "#" style="font-size:18;color:black">与朋友分享</a></div>
	<div id = "head3"><a href = "/xiaonei1227/homepage2.jsp?account=<%=account %>" style="font-size:18;color:black"><%=nickname %></a></div>
	<div id = "head4"><a href = "/xiaonei1227/killsession" style="font-size:18;color:black">退出</a></div>
</div>
<div id = "blank"></div>
<table width="100%">
		<tr>
			<%--内表格第一行 只有一列--%>
			<td width="100%" align="center">
			&nbsp;
			</td>
		</tr>
</table>
<%
   
   
	String temp2 = request.getParameter("topicContent"); 
    String temp = new String(temp2.getBytes("iso8859-1"),"utf-8");
    System.out.println("bbbbbbbbbbbbbbbbbbbbbbbbbb"+temp2);
	session.setAttribute("topicContent",temp);  
	TopicDAOImpl schoolsDAOImpl=new TopicDAOImpl(); 
	
	int iPage1 = Integer.parseInt(request.getParameter("iPage"));
	//根据话题内容，找到这个话题的类型，并遍历这个类型中所有的话题，显示出来
	//根据话题内容，找到这个话题的所有帖子并显示出来；
		
%>
<div style="border-width: 1px;border-style: solid;width:80%;margin:0 auto;">


	<div style="border-style:solid;border-width:1px;width:20%; float: left;"><jsp:include page = "tieziSchool/topicLeft.jsp"></jsp:include></div>
	<div style="border-style:solid;border-width:1px;width:79%; float: right;"><jsp:include page = "tieziSchool/topicRight.jsp">
							<jsp:param name="iPage" value="<%=iPage1 %>"/>  
					  </jsp:include></div>
</div>



</body>
</html>


